package com.xiaoshuidi.cloud.module.bpm.controller.app.swo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@Schema(description = "租客端 - 服务工单评价请求对象")
public class SwoTicketAppraiseReqVO {
    @Schema(description = "服务工单id")
    @NotNull(message = "服务工单id不能为空")
    private Long id;

    @Schema(description = "评分")
    @NotNull(message = "评分不能为空")
    private Integer rating;

    @Schema(description = "评价内容")
    @NotNull(message = "评价内容不能为空")
    @Size(max = 200, message = "评价内容不能超过200字~")
    private String comments;
}
